<template>
  <el-dialog class="dislog_box" :model-value="visible" width="90%" @close="closeDialog">
    <template #header="">
      <div class="my-header"></div>
    </template>
    <div class="php_yuyue">
      <div class="from">
        <h2>装修报价</h2>
        <h3>
          今天已有
          <span>537</span>
          位业主获取了装修预算
        </h3>
        <ul>
          <li>
            <i></i>
            <input type="text" placeholder="您的称呼：" />
            <b>*</b>
          </li>
          <li>
            <i></i>
            <input type="text" maxlength="11" placeholder="您的电话：" />
            <b>*</b>
          </li>
          <li>
            <i></i>
            <input type="text" placeholder="您的面积：" />
            <b>*</b>
          </li>
        </ul>
        <div class="btns">
          <div>免费获取报价</div>
        </div>
      </div>
      <div class="right">
        <div>
          <p>
            关注雅阁汇微信公众号
            <br />
            了解更多装饰资讯
          </p>
          <img
            src="/src/assets/img/erweima.jpg"
            alt=""
          />
        </div>
      </div>
    </div>
  </el-dialog>
</template>

<script setup>
defineProps({
  visible: Boolean
})
const emits = defineEmits('close-event')
const closeDialog = () => {
  emits('close-event', false)
}
</script>

<style>
.dislog_box{
    padding: 0;
}
.php_yuyue .from {
  padding: 0.62rem 0 0.8rem;
  border-bottom: 0.01rem solid #b5b5b5;
}

.php_yuyue .from h2 {
  font-size: 0.46rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.php_yuyue .from h3 {
  font-size: 0.26rem;
  font-weight: 400;
  color: #666;
  margin: 0.16rem 0 0.65rem;
  text-align: center;
}

.php_yuyue .from h3 span {
  font-family: Gilroy-Bold;
  color: #dd292c;
}

.php_yuyue .from ul li {
  width: 5.5rem;
  height: 0.73rem;
  background: #f6f8f9;
  margin: 0 auto 0.1rem;
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  position: relative;
}

.php_yuyue .from ul li i {
  width: 0.24rem;
  height: 0.24rem;
  background: url(/src/assets/img/baojia1.png) no-repeat;
  background-size: 0.21rem auto;
}

.php_yuyue .from ul li b {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-30%);
  font-size: 0.18rem;
  font-weight: 400;
  color: #dd292c;
}

.php_yuyue .from ul li input {
  height: 100%;
  background: none;
  border: none;
  color: #000;
  font-size: 0.24rem;
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  font-weight: 700;
  padding-left: 0.19rem;
}

.php_yuyue .from ul li input::-moz-placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_yuyue .from ul li input:-ms-input-placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_yuyue .from ul li input::placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_yuyue .from ul li:nth-child(2) i {
  background: url(/src/assets/img/baojia2.png) no-repeat;
  background-size: 0.22rem auto;
}

.php_yuyue .from ul li:nth-child(3) i {
  background: url(/src/assets/img/pingfang.png) no-repeat;
  background-size: 0.24rem auto;
}

.php_yuyue .from .btns {
  width: 100%;
  display: flex;
  margin-top: 0.2rem;
  justify-content: center;
}

.php_yuyue .from .btns div {
  width: 90%;
  height: 0.72rem;
  line-height: 0.72rem;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.24rem;
  background: #dd292c;
  box-shadow: 0 0.1rem 0.2rem 0 rgba(236, 84, 0, 0.2);
}

.php_yuyue .from .btns div:nth-child(2) {
  background: #fff;
  color: #000;
  box-shadow: 0 0.1rem 0.2rem 0 rgba(236, 84, 0, 0);
  margin-left: 0.2rem;
  border: 0.02rem solid #dd292c;
}
.dislog_box .right {
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.82rem
}
.dislog_box .right>div p {
    font-size: .26rem;
    font-weight: 400;
    line-height: .4rem;
    text-align: center
}

.dislog_box .right>div img {
    width: 1.56rem;
    height: 1.56rem;
    display: block;
    margin: .46rem auto 0
}
</style>